//Created by 吴乔 on 2018/6/19.
//todo Facebook Pixel &  Google Analytic 监听

export default {
  /*
  *  todo Facebook Pixel & Google Analytic Code    register
  * */
  register: (params) => {
    fbq('trackCustom', 'register', params);
    gtag('event', 'register', params);
  },

  /*
    *  todo Facebook Pixel & Google Analytic Code    openLogin
    * */
  openLogin: () => {
    fbq('trackCustom', 'openLogin');
    gtag('event', 'openLogin');
  },
  /*
  *  todo Facebook Pixel & Google Analytic Code    openProduect
  * */
  openProduect: (params) => {
    fbq('trackCustom', 'openProduect', params);
    gtag('event', 'openProduect', params);
  },
  /*
 *  todo Facebook Pixel & Google Analytic Code    openPromotionCart
 * */
  openPromotionCart: () => {
    fbq('trackCustom', 'openPromotionCart');
    gtag('event', 'openPromotionCart');
  },
  /*
 *  todo Facebook Pixel & Google Analytic Code    openCashbackCart
 * */
  openCashbackCart: () => {
    fbq('trackCustom', 'openCashbackCart');
    gtag('event', 'openCashbackCart');
  },
  /*
 *  todo Facebook Pixel & Google Analytic Code    openCashbackGuide
 * */
  openCashback: (params) => {
    fbq('trackCustom', 'openCashback',params);
    gtag('event', 'openCashback',params);
  },
  /*
  *  todo Facebook Pixel & Google Analytic Code    openCashbackOrder
  * */
  openCashbackOrder: () => {
    fbq('trackCustom', 'openCashbackOrder');
    gtag('event', 'openCashbackOrder');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    openPromotionOrder
* */
  openPromotionOrder: () => {
    fbq('trackCustom', 'openPromotionOrder');
    gtag('event', 'openPromotionOrder');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    openLimitedDeals
* */
  openLimitedDeals: () => {
    fbq('trackCustom', 'openLimitedDeals');
    gtag('event', 'openLimitedDeals');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    openAffiliate
* */
  openAffiliate: () => {
    fbq('trackCustom', 'openAffiliate');
    gtag('event', 'openAffiliate');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    openHot
* */
  openHot: () => {
    fbq('trackCustom', 'openHot');
    gtag('event', 'openHot');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    openNew
* */
  openNew: () => {
    fbq('trackCustom', 'openNew');
    gtag('event', 'openNew');
  },
  /*
 *  todo Facebook Pixel & Google Analytic Code    googleLogin
 * */
  googleLogin: () => {
    fbq('trackCustom', 'googleLogin');
    gtag('event', 'googleLogin');
  },
  /*
 *  todo Facebook Pixel & Google Analytic Code    facebookLogin
 * */
  facebookLogin: () => {
    fbq('trackCustom', 'facebookLogin');
    gtag('event', 'facebookLogin');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    login
* */
  login: () => {
    fbq('trackCustom', 'login');
    gtag('event', 'login');
  },
    /*
*  todo Facebook Pixel & Google Analytic Code    removeWishList
* */
  removeWishList: (params) => {
    fbq('trackCustom', 'removeWishList',params);
    gtag('event', 'removeWishList',params);
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    addWishList
* */
  addWishList: (params) => {
    fbq('trackCustom', 'addWishList',params);
    gtag('event', 'addWishList',params);
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    openWishList
* */
  openWishList: (params) => {
    fbq('trackCustom', 'openWishList');
    gtag('event', 'openWishList');
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    subscribe
* */
  subscribe: (params) => {
    fbq('trackCustom', 'subscribe',params);
    gtag('event', 'subscribe',params);
  },
  /*
*  todo Facebook Pixel & Google Analytic Code    logOut
* */
  logOut: () => {
    fbq('trackCustom', 'logOut');
    gtag('event', 'logOut');
  },





  /*
  *  todo Facebook Pixel & Google Analytic Code    produectDetail
  * */
  produectDetail: (params) => {
    fbq('trackCustom', 'produectDetail', params);
    gtag('event', 'produectDetail', params);
  },
  /*
  *   todo Facebook Pixel & Google Analytic Code    addCart
  * */
  addCart: (params) => {
    fbq('trackCustom', 'addCart', params);
    gtag('event', 'addCart', params);
  },
  /*
  *   todo Facebook Pixel & Google Analytic Code    returnAmazon
  * */
  returnAmazon: (params) => {
    gtag('event', 'returnAmazon', params);
    fbq('trackCustom', 'returnAmazon', params);
  },
  /*
  *   todo Facebook Pixel & Google Analytic Code    cashbackNow
  * */
  cashbackNow: (params) => {
    gtag('event', 'cashbackNow', params);
    fbq('trackCustom', 'cashbackNow', params);
  },
  /*
  *   todo Facebook Pixel & Google Analytic Code    cashbackSubmit
  * */
  cashbackSubmit: (params) => {
    gtag('event', 'cashbackSubmit', params);
    fbq('trackCustom', 'cashbackSubmit', params);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    creatOrder
   * */
  creatOrder: (params) => {
    gtag('event', 'creatOrder', params);
    fbq('trackCustom', 'creatOrder', params);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    removeCart
   * */
  removeCart: (params) => {
    fbq('trackCustom', 'removeCart', params);
    gtag('event', 'removeCart', params);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    orderNoPay
   * */
  orderNoPay: (params) => {
    fbq('trackCustom', 'orderNoPay', params);
    gtag('event', 'orderNoPay', params);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    orderPay
   * */
  orderPay: (params) => {
    gtag('event', 'orderPay', params);
    fbq('trackCustom', 'orderPay', params);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    orderPayStop
   * */
  orderPayStop: (params) => {
    fbq('trackCustom', 'orderPayStop', params);
    gtag('event', 'orderPayStop', params);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    Search
   * */
  Search: (search_string) => {
    fbq('trackCustom', 'Search', search_string);
    gtag('event', 'Search', search_string);
  },
  /*
   *   todo Facebook Pixel & Google Analytic Code    removeOrder
   * */
  removeOrder: (params) => {
    fbq('trackCustom', 'removeOrder', params);
    gtag('event', 'removeOrder', params);
  }

};
